# myapp/tests.py
from django.test import TestCase
from .models import PersonInfo

class PersonInfoTests(TestCase):

    def setUp(self):
        PersonInfo.objects.create(name="Alice", age=30, hireDate="2020-01-01")

    def test_personinfo_list(self):
        response = self.client.get('/')
        self.assertEqual(response.status_code, 200)
        self.assertContains(response, "Alice")

    # 更多测试...
